/**
 * Created:		Jun 18-2011
 * By:			eeorange
 * Language:	C
 * About:		zoj1037 - Gridland
 * Status:		2584055 2011-07-18 10:35:56 Accepted  1037 C 10 160 
 */
 
#include <stdio.h>

int main(){
	int nr_cases, i;
	scanf("%d", &nr_cases);
	for(i=1; i<=nr_cases; i++){
		int N, M;
		scanf("%d%d", &M, &N);
		printf("Scenario #%d:\n", i);
		printf("%d.", M*N);
		if(M%2 && N%2) printf("41");
		else printf("00");
		printf("\n\n");
	}
	return 0;
		
}
